package com.jay.tools.web.event;

import android.content.Context;
import android.webkit.WebView;

import com.jay.tools.base.BaseFragment;
import com.jay.tools.web.WebFragment;


/**
 * Created by tan on 2017/9/22 022.
 * 抽象每一个具体的事件
 * 将每一个事件当做类的某一个实例来处理
 */

public abstract class Event implements IEvent {

    private Context mContext = null;
    private String mAction = null;
    private WebFragment mFragment = null;
    private String mUrl = null;
    private WebView mWebView = null;

    public WebView getWebView() {
        return mFragment.getWebView();
    }

    public Context getContext() {
        return mContext;
    }

    public void setContext(Context context) {
        this.mContext = context;
    }

    public String getAction() {
        return mAction;
    }

    public void setAction(String action) {
        this.mAction = action;
    }

    public BaseFragment getFragment() {
        return mFragment;
    }

    public void setFragment(WebFragment fragment) {
        this.mFragment = fragment;
    }

    public String getUrl() {
        return mUrl;
    }

    public void setUrl(String url) {
        this.mUrl = url;
    }
}
